A Compact and Efficient SAT-Encoding of Finite Domain CSP

نویسندگان

  • Tomoya Tanjo
  • Naoyuki Tamura
  • Mutsunori Banbara
چکیده

Extended Abstract A (finite) Constraint Satisfaction Problem (CSP) is a combinatorial problem to find an assignment which satisfies all given constraints over finite domains. A SAT-based CSP solver is a program which solves a CSP by encoding it to SAT and searching solutions by SAT solvers. Remarkable improvements in the efficiency of SAT solvers make SAT-based CSP solvers applicable for solving hard and practical problems. A number of SAT encoding methods have been therefore proposed: direct encoding, support encoding, log encoding, log-support encoding, and order encoding. Among them, order encoding [4] has showed a good performance for a wide variety of problems, including Open-Shop Scheduling problems, two-dimensional strip packing problems, and test case generation. Its effectiveness has also been shown by the fact that a SAT-based CSP solver Sugar 3 became a winner in several categories of the 2008 and 2009 International CSP Solver Competitions. However, in the order encoding, the size of SAT-encoded instances becomes huge when the domain size of the original CSP is large. On the other hand, the log encoding [3, 1] uses a bit-wise representation for integer variables. The size of SAT-encoded instances is therefore compact (linear to log d), but its performance is slow in general because it requires many inference steps to " ripple " carries. In this paper, we propose a new encoding, named compact order encoding, aiming to be compact and efficient. The basic idea of the compact order encoding is the use of a numeric system of base B ≥ 2. That is, each integer variable x is represented by a summation ∑ m−1 i=0 B i x i where m = log B d and 0 ≤ x i < B for all x i , and each x i is encoded by the order encoding. Each ternary constraints of addition and multiplication can be encoded into at most O(B 2 log B d) and O(B 3 log B d + B 2 log 2 B d) clauses respectively which are much less than O(d 2) clauses of the order encoding. The compact order encoding can generate much efficient SAT instance than the log encoding in general because it requires fewer carry propagations. Please note that the compact order encoding with base B = 2 is equivalent to the log encoding, and the one with base B ≥ d is equivalent to the order encoding.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Towards a Compact and Efficient SAT-Encoding of Finite Linear CSP

This paper describes a new SAT encoding method applicable to finite linear CSP, named compact order encoding, which is designed to generate compact (small sized) and also efficient SAT instances. The basic idea of the compact order encoding is the use of a numeric system of base B ≥ 2. Each integer variable is divided into m digits and each digit is encoded by using the order encoding. Therefor...

متن کامل

Proposal of a compact and efficient SAT encoding using a numeral system of any base

This paper describes a new SAT encoding method, named compact order encoding, applicable to finite domain CSP. It is a generalization of log encoding (compact encoding) and order encoding which is adopted by an award-winning SAT-based CSP solver. The basic idea of the compact order encoding is the use of a numeral system of some base. Each integer variable is divided into some digits and each d...

متن کامل

Problem Transformations and Algorithm Selection for CSPs

A constraint satisfaction problem (CSP) provides a powerful paradigm to model a large number of practical problems such as scheduling, planning, vehicle routing, configuration, network design, routing and wavelength assignment. An instance of a CSP is represented by a set of variables, each of which can be assigned a value from its domain. The assignments to the variables must be consistent wit...

متن کامل

The Order Encoding: From Tractable CSP to Tractable SAT

Many mathematical and practical problems can be expressed as constraint satisfaction problems (CSPs). The general CSP is known to be NP-complete, but many different conditions have been identified which are sufficient to ensure that classes of instances satisfying those conditions are tractable, that is, solvable in polynomial time [1–4, 7]. The increasing efficiency of SAT-solvers has led to t...

متن کامل

Solving Planning-Graph by Compiling It into CSP

Although the deep affinity between Graphplan’s backward search, and the process of solving constraint satisfaction problems has been noted earlier, these relations have hither-to been primarily used to adapt CSP search techniques into the backward search phase of Graphplan. This paper describes GP-CSP, a system that does planning by automatically converting Graphplan’s planning graph into a CSP...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011